package org.kl.bf.web.basic;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.kl.bf.web.base.BasicController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.baidu.ueditor.ActionEnter;

/**
 * UEditor
 * 
 * @Author hqm
 * @CreateTime 2014-3-13 下午9:34:36
 */
@Controller
@RequestMapping(value = "/basic/ueditor")
public class UEditorController extends BasicController {

	@RequestMapping
	@ResponseBody
	public String list(HttpServletRequest request, HttpSession session) {
		String rootPath = session.getServletContext().getRealPath("/");
		String result = new ActionEnter(request, rootPath).exec();
		return result;
	}
}
